<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html>
<html lang="en">
<head>
<title><s:message code="app.title" /></title>
<%@ include file="Include.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {
		$("#securityquestion").focus();

		$('#editSecurityquestion').click(function() {
			$('#securityquestionForm').attr('action', 'EditSecurityquestion');
			$('#securityquestionForm').attr('method', 'post');
			$('#securityquestionForm').submit();
		});
	});
</script>
</head>
<body>
	<div class="container">
		<%@ include file="Menu.jsp"%>
		<h2>
			<s:message code="securityquestionForm.editheader" />
		</h2>
		<hr>
		<form:form id="cancelForm">
		</form:form>
		<form:form class="form-horizontal" method="post"
			name="securityquestionForm" id="securityquestionForm"
			commandName="securityquestionForm"
			modelAttribute="securityquestionForm">

			<table class="table table-bordered">
				<tr>
					<th><form:label path="securityquestion"><s:message code="securityquestionForm.securityquestion" /></form:label></th>
					<td>
					<form:hidden path="sqid" cssClass="input-medium" id="sqid" />
					<form:input path="securityquestion"	cssClass="input-medium" id="securityquestion" maxlength="100" size="100" tabindex="1" />
					<form:errors cssClass="text-error" path="securityquestion" /></td>
				</tr>
			</table>
			<br>
			<button class="btn btn-primary" type="button" id="editSecurityquestion"><s:message code="add.edit" /></button>
			<button class="btn btn-primary" type="submit" id="cancelSecurityquestion" formaction="ListSecurityquestion"	formmethod="get" form="cancelForm">
			<s:message code="app.cancel" />
			</button>
		</form:form>
		<%@ include file="Footer.jsp"%>
	</div>
</body>
</html>